<?php
define('ROOT_PATH', substr(dirname(__FILE__),0,-13));
include_once(ROOT_PATH.'/configs/config.php');
include_once(ROOT_PATH.'/common/db.php');
include_once(ROOT_PATH.'/common/smarty/smarty.class.php');
include_once(ROOT_PATH.'/common/p_function.php');
$db = new mysql($db_hostname,$db_username,$db_password,$db_name,$db_char);
$smarty = new smarty();
$smarty->template_dir	     = ROOT_PATH.'/admin/templates/';
$smarty->compile_dir	     = ROOT_PATH.'/admin/templates_c/';
$smarty->caching		     = false;